/* 全局爬虫运行 */
import { Framerole } from "./CONSTANT"
export default()=>{
    for (var c in Game.creeps)
    {
        var creep = Game.creeps[c]
        if (creep.memory.belong != 'E39S51') continue
        if (creep.memory.controlByFrame)
        {
            if (Framerole[creep.memory.role])
                Framerole[creep.memory.role].fun(creep)
            else
            {
                creep.say("没有函数")
                return
            }
        }
        else
        {
            creep.HandMisson()
        }

    }

}